package com.young.test.services;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;

@Service
public class AnnotationService {
	/**
	 * Logger for this class
	 */
	private static final Logger logger = Logger.getLogger(AnnotationService.class);
	
	@PostConstruct
	public void init(){
		logger.info("AnnotationService is being initial");
	}
	
	@PreDestroy
	public void destroy() {
		logger.info("AnnotationService is being destroied");
	}

}
